Occurs in the source vault after publishing has ended.
Syntax
PublisherSourceEvent_AfterPublish (destType, destAddress, _
destDocId, publishOptions)
Parameter | Description |
---|---|
destType |
The name of the destination system link, for example, BC Meridian or Windows file system. |
destAddress |
The address of the destination system as shown on the Explorer Destination page, for example, DataStoreName@MachineName for the BlueCielo Meridian Enterprise link. |
destDocId |
The ID of document in the destination system. Contains an empty value if the document does not yet exist in the destination system. |
publishOptions |
The publishing options to apply to the job. If the options were specified in the source system client application, they are passed in this parameter. For information about the publishing options supported by a specific system link, see the system link description in About the publishing modules. If rendering fails with any rendering module and another attempt is configured, this parameter contains the text _RETRYRENDER_<ModuleName>_ . Your implementation of this event can then perform other actions in response to the failure, such as to notify a system administrator, set a property value for easy document location, and so on. |
Example
Public Sub PublisherSourceEvent_AfterPublish (destType, destAddress, _ destDocId, publishOptions) Document.Log _ "Published: " & _ "to " & destType & " '" & destAddress & "'" & _ " document with ID '" & destDocId & "'" & _ " with options '" & publishOptions & "'" End Sub
The Documentum system link supports storing the Documentum object ID in a property in Meridian Enterprise. The value of this property can be returned to determine whether a new document or a new document revision for an existing document must be created.
Following is an example of saving the object ID. The property can be retrieved as described in PublisherSourceEvent_BeforePublish event.
Sub PublisherSourceEvent_AfterPublish(destType, destAddress, _ destDocId, publishOptions) ' Save the (Documentum) ID of the published document in the property ' of the source document Document.DocumentumID = destDocId End Sub
Related concepts
Related information
The ExplorerSynchronization property set